package com.example.db1.service.impl;

import com.example.db1.model.Order;
import com.example.db1.repository.OrderRepository;
import com.example.db1.service.IOrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


/**
 * @ClassDescription:
 * @JdkVersion: 1.8
 * @Author: abp
 * @Created: 2025/3/8 13:19
 */
@Service
public class OrderServiceImpl implements IOrderService {
    @Resource
    private OrderRepository orderRepository;

    @Override
    public List<Order> getOrderList() {
        return orderRepository.findAll();
    }
}
